set(TARGET main)

cmake_minimum_required(VERSION 3.19)

project(${TARGET})

include_directories(./)

set(OpenCV_DIR "D:/opencv-4.8.0/install/x64/mingw/lib")
find_package(OpenCV REQUIRED)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")

add_executable(${TARGET} ${TARGET}.cpp correct.c)
target_link_libraries(${TARGET} ${OpenCV_LIBS})

add_compile_definitions(WINDOWS)
